import {
    http4
} from "@/service/axios";


// PDA手持终端列表
export function getPda(data) {
    return http4.post({
      url: "/road/pda/list/page",
      data,
    });
  }
  
  // 新增PDA手持终端
  export function getAddPda(data) {
    return http4.post({
      url: "/road/pda/add",
      data,
    });
  }
  
  // 编辑PDA手持终端
  export function getEditPda(data) {
    return http4.post({
      url: "/road/pda/edit",
      data,
    });
  }
  
  // 删除PDA手持终端
  export function getDeletePda(data) {
    return http4.post({
      url: `/road/pda/remove/${data}`,
      data,
    });
  }
  
  // PDA下载模版
  export function getDownloadPDA(data) {
    return http4.get({
      url: `/road/pda/import/template/download`,
      data,
      responseType: "blob",
    });
  }
  
  // PDA导出
  export function getExportPDA(data) {
    return http4.post({
      url: "/road/pda/export",
      data,
      responseType: "blob",
    });
  }